<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
	// 5、`Promise.reject`方法: (reason) => {}
	// (1) reason: 失败的原因
	// 说明: 返回一个失败的promise对象
    // 接收的参数即是失败值。
    // const p = Promise.reject(2);
	// console.log(p);// rejected 2

	const p = Promise.reject(new Promise(resolve=>{
		resolve(200)
    }));
	console.log(p);// rejected 值即是接收的Promise实例
</script>
</html>